package com.test.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

@ToString
@ApiModel(value = "微信用户", description = "微信用户的实体类")
public class User {

    @ApiModelProperty(value = "用户id", required = true)
    private Integer userid;

    @ApiModelProperty("用户微信oppenid")
    private String oppenid;

    @ApiModelProperty("用户名")
    private String name;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("学号")
    private String number;

    public User(){}

    public User(String oppenid){this.oppenid = oppenid;}

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getOppenid() {
        return oppenid;
    }

    public void setOppenid(String oppenid) {
        this.oppenid = oppenid == null ? null : oppenid.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number == null ? null : number.trim();
    }
}